<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
>
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
    <style>
        H2 {
            height: 20%;
            margin-top: 10px;
            margin-bottom: 20px;
            display: grid;
            font-size: 30px;
            place-items: center; /* 同时实现水平和垂直居中 */
        }
    </style>
</head>
<body class="timo-layout-page">
<div class="layui-card">
    <div class="layui-card-header timo-card-header">
        <span><i class="fa fa-bars"></i> 销售订单管理</span>
        <i class="layui-icon layui-icon-refresh refresh-btn"></i>
    </div>
    <div class="layui-card-body">
        <div class="layui-row timo-card-screen">
            <H2>销售总额:[[${totalPerformance}]]元 订单总数:[[${countOrder}]]条 企业总数:[[${countCompany}]]家</H2>
        </div>
        <div class="layui-row timo-card-screen">

        </div>
        <div class="timo-table-wrap">
            <table class="layui-table timo-table">
                <thead>
                <tr>

                    <th class="sortable" data-field="companyId">企业名称</th>
                    <th>销售价格(元)</th>
                    <th>订单时间</th>

                </tr>
                </thead>
                <tbody>
                <tr th:each="item:${list}">
                    <td th:text="${item.company?.companyName}">企业名称</td>
                    <td th:text="${item.totalFee == null ? '' : item.totalFee /100} ">销售总额</td>
                    <td th:text="${#dates.format(item.createDate, 'yyyy-MM-dd HH:mm:ss')}">订单时间</td>
                </tr>
                </tbody>
            </table>
        </div>
        <div th:replace="/common/fragment :: page"></div>
    </div>
</div>
<script th:replace="/common/template :: script"></script>
</body>
</html>